package com.aorise.model.expose;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * @Auther: zhouhao
 * @Date: 2019/7/11
 * @Description:
 */
public class EventInfo {

    @ApiModelProperty(name = "CMD",value = "PutDevInfo",example = "PutDevInfo",dataType = "String")
    @NotNull(message = "PutDevInfo不能为空")
    private String CMD;

    @ApiModelProperty(name = "No",value = "IMB编号，编号唯一" ,example = "123456789")
    @NotNull(message = "IMB编号不能为空")
    private String No;

    @ApiModelProperty(name = "Event",value = "故障代码 (即事件参数码)" ,example = "1")
    @NotNull(message = "故障代码不能为空")
    private Integer Event;

    @ApiModelProperty(name = "EveState",value = "事件发生:true 事件消除:false" ,example = "true")
    @NotNull(message = "事件状态  EveState 不能为空")
    private boolean EveState;

    @ApiModelProperty(name = "Event",value = "0:智能监控箱类型" ,example = "0")
    @NotNull(message = "能监控箱类型不能为空")
    private Integer EveType;

    @ApiModelProperty(name = "Time",value = "上传时间,格式:YYYY-MM-DD HH:MM:SS" ,example = "2019-5-7 12:10:10")
    @NotNull(message = "上传时间不能为空")
    private String Time;

    @JsonProperty("CMD")
    public String getCMD() {
        return CMD;
    }

    @JsonProperty("CMD")
    public void setCMD(String CMD) {
        this.CMD = CMD;
    }

    @JsonProperty("No")
    public String getNo() {
        return No;
    }

    @JsonProperty("No")
    public void setNo(String no) {
        No = no;
    }

    @JsonProperty("Event")
    public Integer getEvent() {
        return Event;
    }

    @JsonProperty("Event")
    public void setEvent(Integer event) {
        Event = event;
    }

    @JsonProperty("EveState")
    public boolean isEveState() {
        return EveState;
    }

    @JsonProperty("EveState")
    public void setEveState(boolean eveState) {
        EveState = eveState;
    }

    @JsonProperty("EveType")
    public Integer getEveType() {
        return EveType;
    }

    @JsonProperty("EveType")
    public void setEveType(Integer eveType) {
        EveType = eveType;
    }

    @JsonProperty("Time")
    public String getTime() {
        return Time;
    }

    @JsonProperty("Time")
    public void setTime(String time) {
        Time = time;
    }
}
